package main

// hash计算器
type SimpleHash struct {
	seed int
}

// hash计算方法
func (s SimpleHash) hashCode(value string) int {
	result := 0
	runes := []rune(value)
	for num := range runes {
		result = s.seed*result + num
	}
	return result
}
